export default {
  isFullScreen (state) {
    return state.isFullScreen
  },
  isMiniPlayer (state) {
    return state.isMiniPlayer
  },
  isPlaying (state) {
    return state.isPlaying
  },
  modeType (state) {
    return state.modeType
  },
  isListPlayer (state) {
    return state.isListPlayer
  },
  getSongs (state) {
    return state.songs
  },
  currentSongs (state) {
    const obj = {
      name: '',
      singer: '',
      id: '',
      picUrl: null
    }
    // 解决第一次进来的报错
    if (state.songs.length !== 0) {
      return state.songs[state.currentIndex]
    }
    // 如果没有返回自己创造的
    return obj
  },
  currentLyric (state) {
    return state.currentLyric
  },
  currentIndex (state) {
    return state.currentIndex
  },
  curTime (state) {
    return state.curTime
  }
}
